package com.aspose.cells;

class zbpk extends zbph {
   private int a;
   private double b;
   private double f;

   public zbpk(double var1) {
      super(false, false, false);
      this.f = var1 + 1.0D;
   }

   protected boolean b() {
      return false;
   }

   protected zagu c() {
      ++this.a;
      return null;
   }

   protected zagu a(int var1) {
      this.a += var1;
      return null;
   }

   protected zagu a(double var1) {
      ++this.a;
      if (var1 != 0.0D) {
         this.b += var1 / Math.pow(this.f, (double)this.a);
      }

      return null;
   }

   protected zagu a(double var1, int var3) {
      if (var1 != 0.0D) {
         if (var3 > 1) {
            do {
               ++this.a;
               this.b += var1 / Math.pow(this.f, (double)this.a);
               --var3;
            } while(var3 != 0);
         } else {
            ++this.a;
            this.b += var1 / Math.pow(this.f, (double)this.a);
         }
      } else {
         this.a += var3;
      }

      return null;
   }

   public zagu a() {
      return new zyy(this.b);
   }
}
